package com.hivekion.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnType;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.hivekion.common.entity.BaseEntity;
import lombok.Data;

/**
 * 部门表 sys_dept
 *
 * @author sutao
 */
@Data
@TableName(value = "sys_dept")
public class SysDept extends BaseEntity {
      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("父部门ID")
      private String parentId;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("部门名称")
      private String deptName;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT)
      @ColumnComment("显示顺序")
      private Integer sortCode;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("负责人")
      private String leader;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("联系电话")
      private String phone;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT)
      @ColumnComment("部门状态:1正常,2停用")
      private Integer status;
}
